<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>精灵图的使用</title>
    <style>
        .x{
            width: 24px;
            height: 24px;
            margin: 50px auto;
            background-color: skyblue;
            background: url(../project/static/image/nicon-img.png) no-repeat 0px -48px;
            background-repeat: no-repeat;
            background-position: 0px -48px;
        }
    </style>
</head>
<body>
    <div class="x"></div>
</body>
</html>